<template>
    <el-main>
        <el-main class="ep-body">
			<epl-top-bar :datas="{formData:form,panel:panel}" showPerson personType="PERSON_INJURY_CB" psTagType="PERSON_AAB001_GROUP">
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
            <el-row :gutter="10">
                <epl-userGeneral dataType="person" idCount="10" :panel="panel">
                </epl-userGeneral>
                <epl-userGeneral dataType="company" idCount="2" :panel="panel">
                </epl-userGeneral>
            </el-row>
 			<el-card class="ep-card">
                <el-form :model="form" ref="form" :rules="rules">
                  <ep-title>请输入申请主体信息</ep-title>
                    <el-row :gutter="20">
                        <ep-select colspan="8" label="申请主体" name="alc009" :property="form.alc009" placeholder="请选择申请主体"
                                  p="R" :datas="{formData:form}" codetype="ALC009" ></ep-select>
                        <ep-input colspan="8" label="申请人姓名" name="aac042" :property="form.aac042" placeholder="请输入申请人姓名"
                                  p="R" :datas="{formData:form,panel:panel}" ></ep-input>
						<ep-select colspan="8" label="申请人证件类型" name="bae565" :property="form.bae565" placeholder="请选择申请人证件类型"
                                  p="R" :datas="{formData:form}" codetype="BAE565" ></ep-select>
                     </el-row>
                     <el-row :gutter="20">
						<ep-input colspan="8" label="申请人证件号码" name="aac044" :property="form.aac044" placeholder="请输入申请人证件号码"
                                  p="R" :datas="{formData:form,panel:panel}"  ></ep-input>
						<ep-input colspan="8" label="申请人联系电话" name="acl049" :property="form.acl049" placeholder="请输入申请人联系电话"
                                  p="R" :datas="{formData:form,panel:panel}" rules="this.$rules.mobile" ></ep-input>
                         <ep-date colspan="8" label="申请日期"  name="aae127" :property="form.aae127"  placeholder=""
                                      p="D" :datas="{formData:form}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>          
                     </el-row>
                  <ep-title>请输入工伤信息</ep-title>
                    <el-row :gutter="20">
                        <ep-select colspan="8" label="工伤类别" name="alc027" :property="form.alc027" placeholder="请选择工伤类别"
                                  p="R" :datas="{formData:form}" codetype="ALC027" isChange ></ep-select>
                      	<ep-select colspan="8" label="伤害程度" name="alc021" :property="form.alc021" placeholder="请选择伤害程度"
                                  p="E" :datas="{formData:form}" codetype="ALC021" ></ep-select>
                       <ep-select colspan="8" label="职业工种或工作岗位" name="aca111" :property="form.aca111" placeholder="请选择职业工种或工作岗位"
                                  p="R" :datas="{formData:form}" codetype="ACA111" ></ep-select>
                        </el-row>    
                    <el-row :gutter="20">
                         <ep-select colspan="8" label="伤害部位1" name="alc042" :property="form.alc042" placeholder="请选择伤害部位"
                                  p="E" :datas="{formData:form}" codetype="ALC042" isChange isCodeType  ></ep-select>
                        <ep-select colspan="8" label="伤害部位2" name="alc043" :property="form.alc043" placeholder="请选择伤害部位"
                                  p="E" :datas="{formData:form}" codetype="ALC043" isChange isCodeType ></ep-select>
                        <ep-select colspan="8" label="伤害部位3" name="alc044" :property="form.alc044" placeholder="请选择伤害部位"
                                  p="E" :datas="{formData:form}" codetype="ALC044" isChange isCodeType></ep-select>
                    </el-row>
                     <el-row :gutter="20">
						<ep-select colspan="8" label="伤害部位4" name="alc046" :property="form.alc046" placeholder="请选择伤害部位"
                                  p="E" :datas="{formData:form}" codetype="ALC046" isChange isCodeType ></ep-select>
                        <ep-select colspan="8" label="伤害部位5" name="alc047" :property="form.alc047" placeholder="请选择伤害部位"
                                  p="E" :datas="{formData:form}" codetype="ALC047" isChange isCodeType></ep-select>
                    </el-row>
                    <el-row :gutter="20">
					<ep-textarea colspan="24" label="伤害部位描述" name="alc022" :property="form.alc022" placeholder="请输入伤害部位描述"
                                  p="E" :datas="{formData:form}" rows="3"></ep-textarea>
					</el-row> 
					<el-row :gutter="10">
                        <ep-select colspan="8" label="事故地点" name="bae011" :property="form.bae011"
                                    placeholder="请选择省" codetype="BAE007" p="E"  :datas="{formData:form}" isChange isCodeType></ep-select>
                        <ep-select colspan="4" label="" label-width="0" name="bae012" :property="form.bae012"
                                    placeholder="请选择市" codetype="BAE008" p="E" :datas="{formData: form}" isChange isCodeType
                                    SelectFilterData=" aaa102 like substr(':bae011',0,2)||'%' and aaa102 like '%00' "></ep-select>
                        <ep-select colspan="4" label="" label-width="0" name="bae013" :property="form.bae013" 
                                    placeholder="请选择区县" codetype="BAE009" p="E" :datas="{formData: form}"
                                    SelectFilterData=" aaa102 like substr(':bae012',0,4)||'%'" ></ep-select>
                        <ep-input colspan="8" label="" label-width="0" name="blb003" :property="form.blb003"
                                            placeholder="请输入详细地址" p="E" :datas="{formData:form}"></ep-input>
                    </el-row>       
               <el-row :gutter="20">
						<ep-select colspan="8" label="事故类别" name="ala028" :property="form.ala028" placeholder="请选择事故类别"
                                  p="E" :datas="{formData:form}" codetype="ALA028" ></ep-select>
                        <epl-new-date colspan="8" label="事故时间"  name="sgalc020" :property="form.sgalc020" placeholder="请选择事故时间" 
                                  p="E" :datas="{formData:form}" type="datetime" format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" rules="this.$rules.test_time"></epl-new-date>
                         <ep-input colspan="8" label="交通事故认定书编码" name="blc542" :property="form.blc542" placeholder="请输入交通事故认定书编码"
                                  p="E" :datas="{formData:form}" isChange></ep-input>
                    </el-row>
                  <el-row :gutter="20">
						<ep-select colspan="8" label="是否涉及第三人" name="blc543" :property="form.blc543" placeholder="请选择是否涉及第三人"
                                  p="E" :datas="{formData:form}" codetype="BLC543" ></ep-select>
                    </el-row>
                  <el-row :gutter="20">
                        <ep-textarea colspan="24" label="伤害事件情况" name="alc006" :property="form.alc006" placeholder="请输入伤害事件情况"
                                  p="E" :datas="{formData:form}" rows="3" ></ep-textarea>
                    </el-row>
					<el-row :gutter="20">
                        <ep-select colspan="8" label="诊断机构" name="alc007" :property="form.alc007" placeholder="请选择诊断机构"
                                  p="R" :datas="{formData:form}" codetype="ALC007" ></ep-select>
                       <ep-date colspan="8" label="首诊日期"  name="aae030" :property="form.aae030" placeholder="请选择首诊日期" rules="this.$localRules.DateCheck"
                                      p="E" :datas="{formData:form}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>
                     <ep-date colspan="8" label="职业病确诊日期"  name="aae030" :property="form.aae031"  placeholder="请选择职业病确诊日期"
                                      p="E" :datas="{formData:form}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" rules="this.$localRules.DateCheck"></ep-date>
                     </el-row>
                     <el-row :gutter="20">
                        <ep-textarea colspan="24" label="医疗救治的基本情况和诊断意见" name="blc508" :property="form.blc508" placeholder="医疗救治的基本情况和诊断意见"
                                  p="E" :datas="{formData:form}" rows="3" ></ep-textarea>
                    </el-row>
 	                <el-row :gutter="20">
                        <ep-number colspan="8" label="接触职业病危害月数" name="alc048" :property="form.alc048" :placeholder="form.alc048.placeholder"
                                  p="E"  rules="this.$rules.num" ></ep-number>
                        <ep-select colspan="8" label="职业病名称1" name="ala017" :property="form.ala017" placeholder="请选择职业病名称1"
                                  p="E" :datas="{formData:form}" codetype="ALA017"></ep-select>
                        <ep-select colspan="8" label="职业病名称2" name="ala029" :property="form.ala029" placeholder="请选择职业病名称2"
                                  p="E" :datas="{formData:form}" codetype="ALA017"></ep-select> 
                    </el-row>
                    <el-row :gutter="20">
                        <ep-date colspan="8" label="因工死亡（失踪）日期"  name="alc040" :property="form.alc040" placeholder="请选择因工死亡（失踪）日期"
                                      p="E" :datas="{formData:form}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" rules="this.$localRules.DateCheck"></ep-date>
                    </el-row>
					<el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" type="primary" top="30" bottom="20" ref="save" @formValidate="formValidate"
                                       :validate="['form']"
                                       :datas="{formData: form,panel:panel}"></ep-saveButton>
                    </el-row>
                </el-form>
                </el-card>
        </el-main>
    </el-main>
</template>

<script src="../js/InjuryCogApplyJS.js"></script>
